import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter);

export default new VueRouter({
  routes: [
    {
      path: '/',
      redirect: '/report'
    },
    {
      path: '/report',
      redirect: '/report/air',
      // redirect: '/report/video',
      component: () => import('@/view/layout'),
      children: [
        {
          path: 'air',
          name: '空气报告',
          component: () => import('@/view/report')
        },
        {
          path: 'video',
          name: '宣传视频',
          component: () => import('@/view/video')
        }
      ]
    }
  ]
});
